
import { WeaTools } from 'ecCom';

//获取添加的condition
export const getShareCondition = params => {
    return WeaTools.callApi('/api/workflow/share/getShareCondition', 'GET', params);
};
//获取共享列表
export const getWfRequestList = params => {
    return WeaTools.callApi('/api/workflow/reqlist/getList', 'POST', params);
};
//初始化列表
export const doWorkflowShareListPost = params => {
    return WeaTools.callApi('/api/workflow/share/sharelist', 'POST', params);
};
//添加
export const doWorkflowAddSharePost = params => {
    return WeaTools.callApi('/api/workflow/share/addshare', 'POST', params);
};
//删除
export const doWorkflowDeleteSharePost = params => {
    return WeaTools.callApi('/api/workflow/share/deleteshare', 'POST', params);
};
// 批量共享添加
export const doWorkflowAddShareBatch = params => {
    return WeaTools.callApi('/api/workflow/share/addbatchshare', 'POST', params)
};